package com.code.pattern.factory.abstractfactory;

import com.code.pattern.factory.ICourse;
import com.code.pattern.factory.PythonCourse;

/**
 * 这里的类不在继续创建，跟JavaFactory类似，创建新的实现类出来即可
 * @author: liyufei
 * @date: 2021-03-14 15:05
 */
public class PythonCourseFactory implements ICourseFactory {

    @Override
    public ICourse createCourse() {
        return new PythonCourse();
    }

    @Override
    public INote createNote() {
        return new PythonNote();
    }

    @Override
    public IVideo createVideo() {
        return new PythonVideo();
    }
}
